def build() {

    stage('build') {
        sh 'mvn clean'
        sh "mvn install -Dmaven.test.skip=true"

        archiveArtifacts 'console-webapp/target/*.jar'
        archiveArtifacts 'api-webapp/target/*.jar'
        archiveArtifacts 'jenkins/**/*'
    }
}

return this